const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.avatar || localStorage.getItem('wl-avatar'),
  name: state => state.user.userInfo.name || localStorage.getItem('wl-name')
}
export default getters
